<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html>
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="language" content="en">

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.css"
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/timepicker.css">
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css">
    <?php /*?><link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/yiimain.css"><?php */?>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css">
    

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
    
    <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>
    <?php Yii::app()->clientScript->registerCoreScript('jquery.ui'); ?>
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.js"></script>
    
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-ui-timepicker-addon.js"></script>
  
</head>

<body>

<div class="container">
	<div id="header" style="height:150px;">
		<div id="logo" ><img src="<?= Yii::app()->getBaseUrl(true)?>/images/Cahi-logo.png" height="140px" style="float:left">  <?php /* echo CHtml::encode(Yii::app()->name);*/ ?></div>
	</div><!-- header -->

    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">Cahi</a>
            </div>
            
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="<?php echo Yii::app()->request->baseUrl; ?>/Dashboard">Dashboard <span class="sr-only">(current)</span></a></li>
                    <li class="dropdown">
                        <a href="tbauctionitem" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Auctions <span class="caret"></span></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/tbauctionitem/create1">Add Auction - Windeed</a></li>
                            <li class="divider"></li>
                            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/tbauctionitem/create2">Add Auction - Property Inspection</a></li>
                            <li class="divider"></li>
                            <?php /*?><li><a href="<?php echo Yii::app()->request->baseUrl; ?>/site/auctionsearch">Search Action</a></li>
                            <li class="divider"></li><?php */?>
                            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/tbauctionitem/admin">Manage Auctions</a></li>
                        </ul>
                    </li>
                </ul>
                <?php /*?><form class="navbar-form navbar-left" role="search">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search">
                    </div>
                    <button type="submit" class="btn btn-default">Submit</button>
                </form><?php */?>
                <ul class="nav navbar-nav navbar-right">
                    <ul class="nav navbar-nav navbar-right">
    					<li>
							<?php
                            if(Yii::app()->user->isGuest)
                            {
                                ?><a href="<?php echo Yii::app()->request->baseUrl; ?>/login">Login</a><?php
                            } else {
                                ?><a href="<?php echo Yii::app()->request->baseUrl; ?>/site/logout">Logout <?= Yii::app()->user->name?></a><?php
                            }
                            ?>
                        </li>
                    </ul>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>

	<?php echo $content; ?>
<br>
<br>
<br>
	<div class="row">
    	<div class="col-md-6">
    		<img src="<?= Yii::app()->getBaseUrl(true)?>/images/black_dev_by.png" height="30px"/><br>
        </div>
        
        <div class="col-md-6 footer-copyright">
            Copyright &copy; <?php echo date('Y'); ?> Cahi.<br/>
            All Rights Reserved.<br/>
            <?php /*?><span class="glyphicon glyphicon-search" aria-hidden="true"></span><?php */?>
        </div>
	</div>	
</div>

</body>
</html>
